package top.melody.ecommerce.webapps.www.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.melody.ecommerce.platform.props.GlobalConfig;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Controller
public class IndexController {
    private static final Logger logger = LoggerFactory.getLogger(IndexController.class);
    @Resource
    private GlobalConfig globalConfig;

    @RequestMapping(value = {"/index", "/", ""}, method = RequestMethod.GET)
    public String index(HttpServletRequest request) {
        return "index";
    }

    /**
     * items for fashion...
     */
    @RequestMapping("/items/show")
    public String showItems() {
        return "items-show";
    }
}
